home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Aventura / Squeaky.swf / scripts / frame_270 / PlaceObject2_268_43 / CLIPACTIONRECORD onClipEvent(enterFrame).as
Encoding:
Text File  |  2005-08-04  |  425 b   |  23 lines

  1. onClipEvent(enterFrame){
  2.    if(this._y < 293.35 and this._currentframe == 1)
  3.    {
  4.       this._y += 4;
  5.    }
  6.    if(_root.hero.hitTest(this.ufotop) && _root.hero._y < this._y)
  7.    {
  8.       this.gotoAndStop(2);
  9.       if(this._y > 183.35)
  10.       {
  11.          this._y--;
  12.       }
  13.       if(this._y < 183.5 and this._x > 100)
  14.       {
  15.          this._x -= 2;
  16.       }
  17.    }
  18.    else
  19.    {
  20.       this.gotoAndStop(1);
  21.    }
  22. }
  23.